package crossbreed.tests.mocks.utilities;

import java.util.ArrayList;
import crossbreed.diff.DiffItem;
import crossbreed.diff.IDiff;

public class MockDiff implements IDiff
{
	public ArrayList<DiffItem> diffItems;
	
	public MockDiff()
	{
		diffItems = new ArrayList<DiffItem>();
	}
	
	@Override
	public DiffItem[] diffText(String TextA, String TextB)
	{
		DiffItem[] itemArray = new DiffItem[diffItems.size()];
		return diffItems.toArray(itemArray);
	}

	@Override
	public DiffItem[] diffText(String TextA, String TextB, boolean trimSpace, boolean ignoreSpace,
			boolean ignoreCase)
	{
		DiffItem[] itemArray = new DiffItem[diffItems.size()];
		return diffItems.toArray(itemArray);
	}
}
